﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using IFClientDLL;
using IFClientDLL.Model;

namespace IFViewDetail.KuaiQi.Others
{
    public partial class CtlOrderOnhand : CtlBase
    {
        public CtlOrderOnhand()
        {
            InitializeComponent();
        }
        public override void InitTryIF(ITryIF tryIF)
        {
            base.InitTryIF(tryIF);

            bindingSource.DataSource = tryIF.Client.OrderOnhand;
            tryIF.Client.OrderChanged += new Action(Client_OrderChanged);


        }

        void Client_OrderChanged()
        {
            bindingSource.ResetBindings(false);
        }
        
    }
}
